<template>
	<view class="p20">
		<view class="flex row-between bg-fff radius20 mb20 h102 p30" v-for="(item,index) in list" :key="index"
			@click="$u.route('/pages/public/text',{api:'/member/my/helpCenterInfo',tit:item.name,id:item.id})">
			<view class="">{{item.name}}</view>
			<u-icon name="arrow-right" size="22" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: '',
			};
		},
		onLoad() {
			this.getList()
		},
		onReachBottom() {
			this.getList('down')
		},
		methods: {
			getList(e) {
				e == 'down' ? this.page++ : this.page = 1
				this.$request('/member/my/helpCenter', this.$params).then(res => {
					let list = res.data.data
					e == 'down' ? this.list.push(...list) : this.list = list
				})
			},
		}
	}
</script>

<style lang="scss">

</style>
